const express=require("express");
const app=express();
const port=3000;
app.get("/",function(req,res){
    res.send("<h1>使用express.js框架</h1>");
});
app.listen(port,function(){
    console.log(`MyApp访问地址:http://127.0.0.1:${port}`);
});